package com.wn.icloud.provider.uac.remote;

import com.wn.icloud.common.vo.log.LogInfo;
import com.wn.icloud.provider.uac.remote.fallback.LogFeignApiFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author leeyang
 * @create 2017-07-01 15:16
 */
//定义feign客户端
@FeignClient(value = "icloud-provider-uac", contextId = "log", fallback = LogFeignApiFallback.class)
public interface LogFeignApi {

    @RequestMapping(value = "/api/log/save", method = RequestMethod.POST)
    void saveLog(LogInfo info);

}
